CC=gcc
CFLAGS=-g3 -W -Wall 
LFLAGS=

all:  aleatoire pigeons dames ramsey

aleatoire: aleatoire.o
	$(CC) $(LFLAGS) $^ -o $@

aleatoire.o: aleatoire.c
	$(CC) $(CFLAGS) -c aleatoire.c

pigeons: pigeons.o
	$(CC) $(LFLAGS) $^ -o $@

pigeons.o: pigeons.c
	$(CC) $(CFLAGS) -c pigeons.c

dames: dames.o
	$(CC) $(LFLAGS) $^ -o $@

dames.o: dames.c
	$(CC) $(CFLAGS) -c dames.c
	
ramsey: ramsey.o
	$(CC) $(LFLAGS) $^ -o $@

ramsey.o: ramsey.c
	$(CC) $(CFLAGS) -c ramsey.c

clean:
	rm -f *.o aleatoire pigeons dames ramsey

